package com.glodon.paas.databag.api.bean;

import java.io.Serializable;
import java.util.Date;

public class DatabagDto implements Serializable {
    private static final long serialVersionUID = 1L;
    private String id;
    private String type;
    private String userId;
    private String fileId;
    private String input;
    private String source;
    private String localId;
    private String version;
    private String name;
    
    private String thumbnail;
    
    private String output;
    private Date startTime = new Date();
    private Date endTime;
    private boolean success;
    private String token;
    
    public String getId() {
        return id;
    }
    public void setId(String id) {
        this.id = id;
    }
    public String getType() {
        return type;
    }
    public void setType(String type) {
        this.type = type;
    }
    public String getUserId() {
        return userId;
    }
    public void setUserId(String ownerId) {
        this.userId = ownerId;
    }

    public String getFileId() {
        return fileId;
    }

    public void setFileId(String fileId) {
        this.fileId = fileId;
    }
    public String getInput() {
        return input;
    }
    public void setInput(String input) {
        this.input = input;
    }
    public String getSource() {
        return source;
    }
    public void setSource(String source) {
        this.source = source;
    }
    public String getLocalId() {
        return localId;
    }
    public void setLocalId(String localId) {
        this.localId = localId;
    }
    public String getVersion() {
        return version;
    }
    public void setVersion(String version) {
        this.version = version;
    }
    public String getOutput() {
        return output;
    }
    public void setOutput(String output) {
        this.output = output;
    }
    public Date getStartTime() {
        return startTime;
    }
    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }
    public Date getEndTime() {
        return endTime;
    }
    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }
    public boolean isSuccess() {
        return success;
    }
    public void setSuccess(boolean success) {
        this.success = success;
    }
    public String getThumbnail() {
        return thumbnail;
    }
    public void setThumbnail(String thumbnail) {
        this.thumbnail = thumbnail;
    }
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String publicToken) {
        this.token = publicToken;
    }
    @Override
    public String toString() {
        return "DatabagDto [id=" + id + ", type=" + type + ", userId=" + userId + ", input=" + input + ", source="
                + source + ", localId=" + localId + ", version=" + version + ", output=" + output + ", startTime="
                + startTime + ", endTime=" + endTime + "]";
    }
}
